package com.sun.service.user;

import com.sun.pojo.User;

import java.util.List;

/**
 * @Author Sun
 * @Date 2020/4/25 11:16
 * @Version 1.0
 */
// 关于用户的业务层
public interface UserService {
    //用户登陆
    public User login(String userCode,String password) throws Exception;

    //修改密码
    public boolean updatepwd(int id,String password);

    //获取用户数量
    public int getUserCount(String userName, int userRole);

    //根据条件查询用户列表
    public List<User> getUserList(String userName, int userRole, int currentPageNo, int pageSize);

    //添加用户
    public boolean addUser(User user);
}
